﻿//Copyright (C) <2013>  <jonathan cleeve norton> All Rights Reserved 
//Contct jon.norton@fin-plus.co.uk website <http://www.fin-plus.co.uk/>
using System;

namespace FinPlusInterfaces
{
    public class BeanEventArgs : EventArgs
    {
        public IBean Bean { get; private set; }
        public ChangeType ChangeType { get; private set; }

        public BeanEventArgs(IBean bean, ChangeType changeType) { Bean = bean; ChangeType = changeType; }
    }

    public class PodEventArgs : EventArgs
    {
        public IPod Pod { get; private set; }
        public PodEventArgs(IPod pod) { Pod = pod; }
    }

    public class ConnEventArgs : EventArgs
    {
        public IQuery FinPlusQuery { get; private set; }
        public ConnEventType Type { get; private set; }

        public ConnEventArgs(IQuery finPlusQuery, ConnEventType type)
        {
            FinPlusQuery = finPlusQuery;
            Type = type;
        }
    }

    public class MessageEventArgs : EventArgs
    {
        public IMessage Message { get; set; }

        public MessageEventArgs(IMessage Message) 
        { 
            this.Message = Message; 
        }
    }
}
